<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BTime</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BTime">
			<h1>BTime</h1>
			<p>继承自<a href="BThing.html">BThing</a></p>
			<p id="resume">BTime是时间类，用于表示时间的时分秒三个值。<a href="#desc">详细</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right">inline </td><td><a href="#BTime(int)">BTime</a>(int seconds = 0);</td></tr>
				<tr><td align="right">inline </td><td><a href="#BTime(int, int, int)">BTime</a>(int hours, int minutes, int seconds);</td></tr>
				<tr><td align="right">inline </td><td><a href="#BTime(const BString&,char)">BTime</a>(const BString& str, char split = ':');</td></tr>
				<tr><td align="right">inline </td><td><a href="#BTime(const BTime&)">BTime</a>(const BTime& other);</td></tr>
				<tr><td align="right">inline void </td><td><a href="#reset()">reset</a>();</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#valid() const">valid</a>() const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#empty() const">empty</a>() const;</td></tr>
				<tr><td align="right">inline void </td><td><a href="#set(int, int, int)">set</a>(int hours, int minutes, int seconds);</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#fromString(const BString&,char)">fromString</a>(const BString& str, char split = ':');</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#toString(BString&,const char*) const">toString</a>(BString& str, const char* format = "hh:mm:ss") const;</td></tr>
				<tr><td align="right">inline BString </td><td><a href="#toString(const char*) const">toString</a>(const char* format = "hh:mm:ss") const;</td></tr>
				<tr><td align="right">inline int </td><td><a href="#hour() const">hour</a>() const;</td></tr>
				<tr><td align="right">inline int </td><td><a href="#minute() const">minute</a>() const;</td></tr>
				<tr><td align="right">inline int </td><td><a href="#second() const">second</a>() const;</td></tr>
				<tr><td align="right">inline int </td><td><a href="#value() const">value</a>()const;</td></tr>
				<tr><td align="right">inline const BTime&amp; </td><td><a href="#operator = (const BTime&)">operator = </a>(const BTime& other);</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator == (const BTime&) const">operator == </a>(const BTime& time) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator != (const BTime&) const">operator != </a>(const BTime& time) const;</td></tr>
				<tr><td align="right">inline void </td><td><a href="#operator += (const BTime&)">operator += </a>(const BTime& other);</td></tr>
				<tr><td align="right">inline BTime </td><td><a href="#operator + (const BTime&) const">operator + </a>(const BTime& other) const;</td></tr>
				<tr><td align="right">inline void </td><td><a href="#operator -= (const BTime&)">operator -= </a>(const BTime& other);</td></tr>
				<tr><td align="right">inline BTime </td><td><a href="#operator - (const BTime&) const">operator - </a>(const BTime& other) const;</td></tr>
				<tr><td align="right">inline void </td><td><a href="#operator += (int)">operator += </a>(int seconds);</td></tr>
				<tr><td align="right">inline BTime </td><td><a href="#operator + (int) const">operator + </a>(int seconds) const;</td></tr>
				<tr><td align="right">inline void </td><td><a href="#operator -= (int)">operator -= </a>(int seconds);</td></tr>
				<tr><td align="right">inline BTime </td><td><a href="#operator - (int) const">operator - </a>(int seconds) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator > (const BTime&) const">operator &gt; </a>(const BTime& other) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator >= (const BTime&) const">operator &gt;= </a>(const BTime& other) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator < (const BTime&) const">operator &lt; </a>(const BTime& other) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator <= (const BTime&) const">operator &lt;= </a>(const BTime& other) const;</td></tr>
			</table>
			<h2>protected</h2>
			<table id="protected">
				<tr><td align="right">inline void </td><td><a href="#correct()">correct</a>();</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2>
				<p>BTime是时间类，用于表示时间的时分秒三个值。</p>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="BTime(int)">
				<h3>inline BTime(int seconds = 0);</h3>
				<p>构造一个时间，seconds指定其初始的总秒数。</p>
			</div>
			<div id="BTime(int, int, int)">
				<h3>inline BTime(int hours, int minutes, int seconds);</h3>
				<p>构造一个时间，hours指定时数，minutes指定分数，seconds指定初始秒数。</p>
			</div>
			<div id="BTime(const BString&,char)">
				<h3>inline BTime(const BString&amp; str, char split = ':');</h3>
				<p>构造一个时间，由指定的str中解析出时分秒三个值，split指定其分割符。</p>
			</div>
			<div id="BTime(const BTime&)">
				<h3>inline BTime(const BTime&amp; other);</h3>
				<p>构造一个时间，数据由另一个时间复制。</p>
			</div>
			<div id="reset()">
				<h3>inline void reset();</h3>
				<p>重置时间值为0。</p>
			</div>
			<div id="valid() const">
				<h3>inline bool valid() const;</h3>
				<p>判断此时间值是否为非空。</p>
			</div>
			<div id="empty() const">
				<h3>inline bool empty() const;</h3>
				<p>判断此时间值是否为空。</p>
			</div>
			<div id="set(int, int, int)">
				<h3>inline void set(int hours, int minutes, int seconds);</h3>
				<p>设置时分秒三个值。</p>
			</div>
			<div id="fromString(const BString&,char)">
				<h3>inline bool fromString(const BString&amp; str, char split = ':');</h3>
				<p>从字符串str中解析出三个值，split指定分割字符。</p>
			</div>
			<div id="toString(BString&,const char*) const">
				<h3>inline bool toString(BString&amp; str, const char* format = "hh:mm:ss") const;</h3>
				<p>将此时间值转换为字符串，str为结果字符串，format指定其格式。</p>
			</div>
			<div id="toString(const char*) const">
				<h3>inline BString toString(const char* format = "hh:mm:ss") const;</h3>
				<p>将此时间值转换为字符串，format指定其格式。</p>
			</div>
			<div id="hour() const">
				<h3>inline int hour() const;</h3>
				<p>获得小时数。</p>
			</div>
			<div id="minute() const">
				<h3>inline int minute() const;</h3>
				<p>获得分钟数。</p>
			</div>
			<div id="second() const">
				<h3>inline int second() const;</h3>
				<p>获得秒数。</p>
			</div>
			<div id="value() const">
				<h3>inline int value()const;</h3>
				<p>获得总秒数。</p>
			</div>
			<div id="operator = (const BTime&)">
				<h3>inline const BTime&amp; operator = (const BTime&amp; other);</h3>
				<p>从另一个时间复制数据到此时间中。</p>
			</div>
			<div id="operator == (const BTime&) const">
				<h3>inline bool operator == (const BTime&amp; time) const;</h3>
				<p>判断此时间与指定的另一个时间是否相同。</p>
			</div>
			<div id="operator != (const BTime&) const">
				<h3>inline bool operator != (const BTime&amp; time) const;</h3>
				<p>判断此时间与指定的另一个时间值是否不同。</p>
			</div>
			<div id="operator += (const BTime&)">
				<h3>inline void operator += (const BTime&amp; other);</h3>
				<p>将此时间值累加上另一个时间值。</p>
			</div>
			<div id="operator + (const BTime&) const">
				<h3>inline BTime operator + (const BTime&amp; other) const;</h3>
				<p>将此时间值加上另一个时间值，并返回结果。</p>
			</div>
			<div id="operator -= (const BTime&)">
				<h3>inline void operator -= (const BTime&amp; other);</h3>
				<p>将此时间值减去另一个时间值。</p>
			</div>
			<div id="operator - (const BTime&) const">
				<h3>inline BTime operator - (const BTime&amp; other) const;</h3><p>将此时间值减去另一个时间值，并返回结果。</p>
			</div>
			<div id="operator += (int)">
				<h3>inline void operator += (int seconds);</h3>
				<p>将此时间值加上指定的秒数。</p>
			</div>
			<div id="operator + (int) const">
				<h3>inline BTime operator + (int seconds) const;</h3>
				<p>将此时间值加上指定的秒数，并返回结果值。</p>
			</div>
			<div id="operator -= (int)">
				<h3>inline void operator -= (int seconds);</h3>
				<p>将此时间值减去指定的秒数。</p>
			</div>
			<div id="operator - (int) const">
				<h3>inline BTime operator - (int seconds) const;</h3>
				<p>将此时间值减去指定的秒数，并返回结果值。</p>
			</div>
			<div id="operator > (const BTime&) const">
				<h3>inline bool operator &gt; (const BTime&amp; other) const;</h3>
				<p>判断此时间是否大于另一个时间。</p>
			</div>
			<div id="operator >= (const BTime&) const">
				<h3>inline bool operator &gt;= (const BTime&amp; other) const;</h3>
				<p>判断此时间是否大于等于另一个时间。</p>
			</div>
			<div id="operator < (const BTime&) const">
				<h3>inline bool operator &lt; (const BTime&amp; other) const;</h3>
				<p>判断此时间是否小于另一个时间。</p>
			</div>
			<div id="operator <= (const BTime&) const">
				<h3>inline bool operator &lt;= (const BTime&amp; other) const;</h3>
				<p>判断此时间是否小于等于另一个时间。</p>
			</div>
			<div id="correct()">
				<h3>inline void correct();</h3>
				<p>修正时分秒各个分量值，使用各分秒值在0至60的范围内，小时数不作限制。</p>
			</div>
		</div>
	</body>
</html>